// lodash fp 模块
// NEVER SAY DIE ->  never-say-die

const fp = require('lodash/fp')


const f = fp.flowRight(fp.join('-'), fp.map(fp.toLower), fp.split(' '))

console.log(f('NEVER SAY DIE')) 
// never-say-die